<template>
  <van-nav-bar title="钻石商城" left-arrow @click-left="onClickLeft" />
  <nav class="giftNav">
    <div>
      <h4>我的钻石</h4>
      <aside>
        <img src="../assets/img/zuanshi.webp" alt="" />
        <strong>0</strong>
      </aside>
    </div>
    <span>兑换记录</span>
  </nav>
</template>

<script>
import {} from "vue";
import { useRouter } from "vue-router";

export default {
  setup() {
    const router = useRouter();
    const onClickLeft = () => {
      router.push("/home/mine");
    };

    return {
      onClickLeft
    };
  }
};
</script>

<style lang="scss">
.van-icon-arrow-left:before {
  color: #b2b2b2;
}
</style>

<style lang="scss" scoped>
.giftNav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 30px;
  div {
    width: 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    h4 {
      margin: 0;
      font-size: 16px;
      font-weight: 600;
    }
    strong {
      font-weight: 600;
    }
    img {
      width: 20px;
      height: 20px;
    }
  }
}
</style>
